package com.baizhi.cmfz.controller;

import com.baizhi.cmfz.service.AudioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@RequestMapping("/audio")
@Controller
public class AudioController {
    @Autowired
    private AudioService audioService;

    @RequestMapping("/showPageAudio")
    @ResponseBody
    public Map showPageAudio(int page, int limit, String aName){
        return audioService.showPageAudio(page, limit, aName);
    }
}
